const webpack = require('webpack');
module.exports = {
    lintOnSave: false,
    configureWebpack: {
        devServer: {
            port: 8080,
            host: 'localhost',
            open: true,
            https: false,
            proxy: {
                //名字可以自定义，这里我用的是api
                '': {
                    target: 'http://localhost:3000', //设置你调用的接口域名和端口号 别忘了加http
                    changeOrigin: true, //这里设置是否跨域
                    pathRewrite: {
                        '': ''
                    }
                }
            },
        },
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery",
                "windows.jQuery": "jquery"
            })
        ]
    },




}